// vite.config.js
import { defineConfig } from "file:///D:/code/mantou-ai-agent/mantou-ai-agent-frontend/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/code/mantou-ai-agent/mantou-ai-agent-frontend/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { fileURLToPath, URL } from "node:url";
var __vite_injected_original_import_meta_url = "file:///D:/code/mantou-ai-agent/mantou-ai-agent-frontend/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [vue()],
  // 设置路径别名 '@' 指向 /src 目录
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  // 生产环境构建优化
  build: {
    outDir: "dist",
    assetsDir: "assets",
    sourcemap: false,
    minify: "esbuild",
    chunkSizeWarningLimit: 1e3,
    rollupOptions: {
      output: {
        manualChunks: {
          vendor: ["vue", "vue-router", "pinia"],
          ui: ["@iconify/vue", "lucide-vue-next"]
        }
      }
    }
  },
  // 开发服务器代理配置
  server: {
    proxy: {
      "/api": {
        target: "http://localhost:9901",
        changeOrigin: true,
        secure: false
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFxjb2RlXFxcXG1hbnRvdS1haS1hZ2VudFxcXFxtYW50b3UtYWktYWdlbnQtZnJvbnRlbmRcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXGNvZGVcXFxcbWFudG91LWFpLWFnZW50XFxcXG1hbnRvdS1haS1hZ2VudC1mcm9udGVuZFxcXFx2aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwg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